import request from '@/utils/http';

// 使用情况列表
export function getList(params) {
	return request({
		url: '/bi/agentOperate/codeUse',
		method: 'get',
		params
	});
}
// 导出使用情况列表
export function exportList(params) {
	return request({
		url: '/bi/agentOperate/codeUse/export',
		method: 'get',
		params,
		responseType: 'arraybuffer'
	});
}
// 邀请码详情
export function getDetail(params) {
	return request({
		url: '/anchor/platform/manager/tdInvitationCode/list/detail',
		method: 'get',
		params
	});
}
// 探店情况列表
export function getTDList(params) {
	return request({
		url: '/bi/agentOperate/shop',
		method: 'get',
		params
	});
}
// 导出探店情况列表
export function exportTDList(params) {
	return request({
		url: '/bi/agentOperate/shop/export',
		method: 'get',
		params,
		responseType: 'arraybuffer'
	});
}
// 素材情况列表
export function getSCList(params) {
	return request({
		url: '/bi/agentOperate/resource',
		method: 'get',
		params
	});
}
// 导出素材情况列表
export function exportSCList(params) {
	return request({
		url: '/bi/agentOperate/resource/export',
		method: 'get',
		params,
		responseType: 'arraybuffer'
	});
}
